# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-pyserial
pkgver=3.5
pkgrel=3
pkgdesc="Multiplatform Serial Port Module for Python"
url="https://github.com/pyserial/pyserial"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-$pkgver.tar.gz"
builddir="$srcdir/"pyserial-$pkgver

replaces="py3-serial" # For transitions from the old duplicated package

build() {
	python3 setup.py build
}

check() {
	python3 test/run_all_tests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c8df5e50d952d5a6dcf1d9253a6ba953e9763c545a867da66c22c90dfa015aba0194f2a8f29a229d0a5f4dc8bfeeaaab8bcfda4066ed78a18b151bc05e6ae327  pyserial-3.5.tar.gz"
